import request from '@/utils/request'

export function getPage(query) {
  return request({
    url: '/carousel/getPage.do',
    method: 'get',
    params: query
  })
}

export function add(query) {
  return request({
    url: '/carousel/add.do',
    method: 'post',
    headers: { 'Content-Type': 'multipart/form-data;charset=utf-8' },
    data: query
  })
}

export function del(query) {
  return request({
    url: '/carousel/del.do',
    method: 'delete',
    params: query
  })
}
